{extend name="base/main" /}
{block name="body"}
    <div class="wrapper wrapper-content animated fadeInRight">
		<div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>用户管理 / 管理员授权</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
					<form id="f" action="{:url('auth_member/tgauthor')}" method="post">
						<div class="col-sm-12">
							<label>管理员昵称：{:get_admin_info($uid,'nickname')}</label>
							<table class="table table-hover table-bordered ">
								<thead>
									<tr>
										<th><input type="checkbox" class="i-checks check-all"></th>
										<th>角色名称</th>
									</tr>
								</thead>
								<tbody>
									{volist name="list" id="vo"}
										<tr>
											<td><input type="checkbox" <?php if(in_array($vo['id'],$mgs)){echo "checked";}?> class="i-checks ids" name="id[]" value="{$vo.id}"/></td>
											<td>{$vo.title}</td>
										</tr>
									{/volist}
								</tbody>
							</table>
						</div>
						<div class="form-group">
							<div class="col-sm-2">
								<input type="hidden" name="uid" value="{$uid}"/>
								<button class="btn btn-primary" type="submit">提交</button>
								<button class="btn btn-default historygo" type="button">返回</button>
							</div>
						</div>
					</form>
                </div>
            </div>
			
        </div>
		
    </div>
{/block}